<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <style>
    .table-striped>tbody>tr:nth-of-type(odd) {
        background-color: #d7b2b2;
    }
    th{
        text-align: center;
    }
    </style>
</head>
<body>
<div class="table-responsive">
    <table class=" text-center table table-striped  table-hover table-bordered  table-condensed">
        <thead>
            <tr>
                <th>姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名姓名</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
        </thead>
        <tr class="warning">
            <td>张三</td>
            <td>18</td>
            <td>男</td>
        </tr>
        <tr class="info">
            <td>李四</td>
            <td>19</td>
            <td>女</td>
        </tr>
        <tr>
            <td>张三</td>
            <td>18</td>
            <td>男</td>
        </tr>
        <tr>
            <td>张三</td>
            <td>18</td>
            <td>男</td>
        </tr>
        <tr>
            <td>李四</td>
            <td>19</td>
            <td>女</td>
        </tr>
        <tr class="danger">
            <td>张三</td>
            <td>18</td>
            <td>男</td>
        </tr>
    </table>
</div>
</body>
</html>